<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<%@ taglib prefix='c' uri='http://java.sun.com/jstl/core' %>

<%@page import="org.springframework.security.web.authentication.AuthenticationProcessingFilter"%>

<html>
   <head>
   </head>
   <body>
   
	
	<form action="/NoteCalendar/j_spring_security_check" method="post">
		<c:if test="${not empty param.error}">
		  <p>
	          <font color="red">
	            Your login attempt was not successful, try again.<br/>
	            Reason: <c:out value="${SPRING_SECURITY_LAST_EXCEPTION.message}"/>.
	          </font>
          </p>
        </c:if>
		
		<label for="j_username">Username</label>
		<input type="text" name="j_username" id="j_username" 
			<c:if test="${not empty param.login_error}">
			value='<%= session.getAttribute(AuthenticationProcessingFilter.SPRING_SECURITY_LAST_USERNAME_KEY) %>'
			</c:if>
		/>
		<br/>
		<label for="j_password">Password</label>
		<input type="password" name="j_password" id="j_password"/>
		<br/>
		<input type='checkbox' name='_spring_security_remember_me'/> Remember me on this computer.
		<br/>
		<input type="submit" value="Login"/>
	</form>
   
	
   </body>
</html>